<?php
$arr_dir = explode('|', str_replace(array ('/','\\'), '|', __DIR__));
$str_dir = array_pop($arr_dir);
define('ORG_ID_TEST', $str_dir);
if(isset($_REQUEST['type']) && $_REQUEST['type'] == 'cdn')
{
	$file_name = ORG_ID_TEST.'_client.php';
	include $file_name;
	$class_name = ORG_ID_TEST.'_client';
	$result = $class_name::ContentDeployReq(
	  '55af07f32981aa339b6c3f5da79bd1dc',
	  'ftp://hndx1:hndx1234@119.39.13.251:21/2015-07-22/series_55af07f32987903ba09cd232a59c3454.xml',
	  'video'
	);
}
else
{
	include 'content_deploy_client.php';
	$CMSID = 'ZTE001';
	$SOPID = 'starcor';
	$CorrelateID = '114';
	$ResultCode = '0';
	$ErrorDescription = 'OK'; 
	$ResultFileURL = 'ftp://zx_ftp:zx_ftp@10.100.106.13:21/zte005.xml';
	$test_obj = new content_deploy_ZTE001_client('ZTE001','starcor');
	$result = $test_obj->ContentDeployResult($CorrelateID, $ResultCode, $ErrorDescription, $ResultFileURL);
}
var_dump($result);
